//
//  NSDateFormatter+Creation.m
//  SPKit
//
//  Created by 李双鹏 on 15/10/5.
//  Copyright (c) 2015年 SP. All rights reserved.
//

#import "NSDateFormatter+Creation.h"

@implementation NSDateFormatter (Creation)
+ (instancetype)dateFormatter
{
    return [[self alloc] init];
}

+ (instancetype)dateFormatterWithFormat:(NSString *)dateFormat
{
    NSDateFormatter *dateFormatter = [[self alloc] init];
    dateFormatter.dateFormat = dateFormat;
    return dateFormatter;
}

+ (instancetype)defaultDateFormatter
{
    return [self dateFormatterWithFormat:@"yyyy-MM-dd HH:mm:ss"];
}
@end
